package cn.myschool.test.day4;

import cn.myschool.dao.StudentDao;
import cn.myschool.entity.Student;
import cn.myschool.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class Search3Student {
    public static void main(String[] args) {
        SqlSession s = MybatisUtil.get();
        StudentDao mapper = s.getMapper(StudentDao.class);

        List<Student> students = mapper.searchEnterDate(1);
        students.forEach(System.out::println);
        MybatisUtil.close(s);
    }
}
